#include <QtGui/QApplication>
#include "uicontrol.h"
#include <pthread.h>
#include "../QCommon/user.h"
#include "startupdialog.h"
#include "../QClient/QClientInterface.h"

//int arg_c;
//char** arg_v;
UIControl ui;


//void* thread_welcome_dialog(void*); // show a welcome dialog
//void* thread_lanq_window(void*);    // show the lanq window with user list

int main(int argc, char **argv)
{
    start();
//    arg_c = argc;
//    arg_v = argv;
    QApplication app(argc,argv);
//    ui = UIControl::getInstance();
//    ui.startup_ui();
    StartupDialog welcomeDialog;
    welcomeDialog.show();
//    pthread_t tid;
//    pthread_create(&tid,NULL,thread_welcome_dialog,NULL);

    return app.exec();
}
//
//void* thread_welcome_dialog(void* arg){
//    ui.startup_ui(arg_c, arg_v);
//}
//
//void* thread_lanq_window(void* arg){
//    User *user_p = (User*)(arg);
//    User user = *user_p;
//    ui.show_lanq_window(user);
//}
